package main

import (
	"fmt"
)

type human struct {
	Sex int
}
type teacher struct {
	human
	Name string
	Age int
}
type student struct {
	human
	Name string
	Age int
}

func main() {
	a := teacher{Name:"johnny", Age:19,human:human{Sex:1}}
	b  := student{Name:"johnny", Age:19,human:human{Sex:0}}
	a.Name = "zhangsan"
	b.human.Sex = 100000
	fmt.Println(a,b)
}
